﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Model;
using DAL;
using System.Windows.Forms;

namespace BLL
{
    public class StudentBindTypeEntityBll
    {
        readonly private DLL.StudentBindTypeEntityDal studentbindpapertypedal;
        public StudentBindTypeEntityBll()
        {
            //创建一个studentbindpapertypedal
            studentbindpapertypedal = new DLL.StudentBindTypeEntityDal();
        }
        #region"根据学号判断学生是否登录过-韩梦甜-2015-12-14"
        /// <summary>
        /// 根据学号判断学生是否登录过-韩梦甜-2015-12-14
        /// </summary>
        /// <param name="studentinfo"></param>
        /// <returns></returns>
        public DataTable SelectStudentByIsUse(StudentBindPaperTypeEntity studentinfo)
        {
            DataTable dt = studentbindpapertypedal.SelectStudentByIsUse(studentinfo);
            return dt;

        }
        #endregion

        #region"更改用户是否登录过标志-韩梦甜-2015-12-14"
        /// <summary>
        /// 更改用户是否登录过标志-韩梦甜-2015-12-14
        /// </summary>
        /// <param name="studentinfo"></param>
        /// <returns></returns>
        public int UpdateStudentByIsUse(StudentBindPaperTypeEntity studentinfo)
        {

            int flag = studentbindpapertypedal.UpdateStudentByIsUse(studentinfo);
            return flag;

        }
        #endregion

        #region"根据学号和是否使用查询时间戳-李少然-2015-12-18"
        /// <summary>
        /// 根据学号和是否使用查询时间戳-李少然-2015-12-18
        /// </summary>
        /// <param name="studentinfo"></param>
        /// <returns></returns>
        public DataTable SelectStudentByIsUseStudentID(StudentBindPaperTypeEntity studentinfo)
        {
            DataTable dt = studentbindpapertypedal.SelectStudentByIsUseStudentID(studentinfo);
            return dt;

        }
        #endregion

        #region"根据学号判断学生当天是否登录过-苑仁杰-2018-12-14"
        /// <summary>
        /// 根据学号判断学生当天是否登录过-苑仁杰-2018-12-14
        /// </summary>
        /// <param name="studentinfo"></param>
        /// <returns></returns>
        public DataTable SelectStudentByStudentIDTime(StudentBindPaperTypeEntity studentinfo)
        {
            DataTable dt = studentbindpapertypedal.SelectStudentByStudentIDTime(studentinfo);
            return dt;

        }
        #endregion
    }
}
